package com.yubest.designpattern.behavior.command;

import lombok.AllArgsConstructor;

/**
 * 命令-开灯
 *
 * @Author: hweiyu
 * @Date: 2022/10/26 16:58
 */
@AllArgsConstructor
public class LightOnCommand implements Command {

    private Light light;

    @Override
    public void exec() {
        light.on();
    }
}
